<template>
	<view>
		<status-bar ref='statusbar' :title='tabTitle' back='0'></status-bar>
	<view class="viewbox auto p-top30 p-bot30">
		<block v-for="(item,index) in pageData" :key="item.classify_id">
			<image :src="$imgUrls(item.classify_atlas)" mode="widthFix" class="rows bor_radius_10 m-bot30"
				@click="toUrl(`/answer/studyList?id=${item.classify_id}`)"></image>
		</block>

		<empty v-if="!pageData.length"></empty>
	</view>
	    <tabBar :tab="14"></tabBar>
	</view>
</template>

<script>
	import {mapState} from 'vuex';
	export default {
		data() {
			return {
				pageData: [],
			}
		},
		onLoad() {
			this.allUpList();
		},
		methods: {
			allUpList() {
				this.$http.post({
					url: '/singleSaleApi/allUpList',
				}).then(res => {
					if (res.errcode != 100) return this.$Toast(res.msg);
					const result = res.data || [];
					this.pageData = result;
				})
			}
		},
		computed:{
			...mapState(['tabTitle'])
		}
	}
</script>

<style lang="scss" scoped>

</style>